package alf.mapping.dto.maps;

public class Link {
	private NavigationLink destination;
	private boolean visible,navigable;
	private String style, orientation, title;

	public Link(){
		
	}
	
	public Link(Link other) {
		destination = other.destination.clone();
		visible = other.visible;
		navigable = other.navigable;
		style = other.style;
		orientation = other.orientation;
		title = other.title;
	}
	
	public void setStyle(String style) {
		this.style = style;
	}

	public String getStyle() {
		return style;
	}

	public void setOrientation(String orientation) {
		this.orientation = orientation;
	}

	public String getOrientation() {
		return orientation;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle() {
		return title;
	}

	public void setVisible(boolean visible) {
		this.visible = visible;
	}

	public boolean isVisible() {
		return visible;
	}

	public void setNavigable(boolean navigable) {
		this.navigable = navigable;
	}

	public boolean isNavigable() {
		return navigable;
	}
	
	public void setDestination(NavigationLink destination) {
		this.destination = destination;
	}

	public NavigationLink getDestination() {
		return destination;
	}
	
	public Link clone() {
		return new Link(this);
	}
	
	public String toString() {
		String title = (getTitle() == null ?"": getTitle());
		return title + "-->" + getDestination();
	}
}
